        <el-form v-if="search_fields.length" size="small" :inline="true" :model="searchForm" class="demo-form-inline">
            <el-form-item v-for="field in search_fields" :key="field.name" :label="field.label">
                <el-input
                        v-if="field.type === 'input'"
                        v-model="searchForm[field.name]"
                        clearable
                        :placeholder="field.placeholder"
                        @keyup.enter.native="search"
                ></el-input>
                <el-select
                        v-else-if="field.type === 'select'"
                        v-model="searchForm[field.name]"
                        :filterable="field.filterable"
                        placeholder="请选择"
                        clearable
                        @change="search"
                >
                    <el-option v-for="option in field.options" :key="option.value" :label="option.label" :value="option.value"></el-option>
                </el-select>
                <el-date-picker
                        v-else-if="field.type === 'daterange'"
                        v-model="searchForm[field.name]"
                        type="daterange"
                        range-separator="至"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期"
                        value-format="yyyy-MM-dd"
                        @change="handleDateChange(field.name)"
                ></el-date-picker>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="search">查询</el-button>
            </el-form-item>
        </el-form>